import request from '@/utils/request'

// 登录
export const login = (params) => {
  return request({
    url: '/user_infos',
    method: 'get',
    params
  })
}

// 注册
export const register = (data) => {
  return request({
    url: '/user_infos',
    method: 'post',
    data
  })
}
